$('[name="logout"]').click(function(){
    const cookieObj=myGetCookie();
    if(cookieObj.login === undefined){
      window.alert('您还没有登录，请先登录');
    }else{
      mySetCookie('login','2',-1,'/');
      window.alert('您已成功退出');
    }
  });

  $('[name="cart"]').click(function(){
    const cookieObj=myGetCookie();
    if(cookieObj.login === undefined){
      if(window.confirm('您还没登录，点击确定，跳转登录页面登录')){
        window.location.href='./login.html';
      }
    }else{
      window.location.href='./cart.html';
    }
  });
 
  //轮播
  jQuery(".slideBox").slide({
     mainCell: ".bd ul",
     effect: "leftLoop",
     vis: "auto",
     autoPlay: true,
     trigger: "mouseover"
  });